﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LdtJudge.DataEngine.Model.LogicblockServers
{
    //底层分析返回
    public class PiecewiseResults
    {
        public BaseResult Result { get; set; } = new BaseResult();
        public object Body { get; set; }
    }
    public class BaseResult
    {
        /// <summary>
        /// 操作结果状态码 1:成功 0:失败
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 状态码对应的信息(一般错误信息)
        /// </summary>
        public string Message { get; set; }
    }
    public class ParsingCount
    {
        /// <summary>
        /// 类型编号
        /// </summary>
        public string ParagraphCode { get; set; }
        public List<Contents> Body { get; set; } = new List<Contents>();

    }
    public class Contents
    {
        public string Conunt { get; set; }
    }
    /// <summary>
    /// 实体识别结果对象
    /// </summary>
    public class EntityResult
    {
        public List<EntityResultItem> Results { get; set; } = new List<EntityResultItem>();
        public string OriginalText { get; set; }
    }
    /// <summary>
    /// 识别结果对象
    /// </summary>
    public class EntityResultItem
    {
        /// <summary>
        /// 内容
        /// </summary>
        public string Content { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int Length { get; set; }
        /// <summary>
        /// 位置
        /// </summary>
        public int Position { get; set; }
        /// <summary>
        /// 实体标记key
        /// </summary>
        public string Key { get; set; } = "";
        /// <summary>
        /// 行号
        /// </summary>
        public int RowIndex { get; set; }
    }
}
